// 接口，可选成员, 动态成员
export {}

interface Post{
  title: string,
  content: string,
  desc?: string,
  readonly fdfs: number
}

function fu(post: Post) {
  console.log(post.title)
  console.log(post.content)
}
fu({
  title: "fdsfs",
  content: "fdsfds",
  fdfs: 123
})

// 动态成员
interface Cache {
  [prop: string]: string
}
const cag: Cache = {}
cag.ages = "1231"
cag.gdfds = "1231"